package com.newly.common.base.entity.sys.tenant.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * @Author: chenruheng
 * @Date: 2021/12/11 14:19
 */
@Data
@ApiModel(value = "通过邮箱修改密码dto")
public class UpdPasswordByEmailDto {
    /**
     * 邮箱
     */
    @ApiModelProperty("邮箱")
    @NotBlank(message = "邮箱为空")
    private String email;

    /**
     * 邮箱验证码
     */
    @ApiModelProperty("邮箱验证码")
    @NotBlank(message = "邮箱验证码为空")
    private String emailCaptcha;

    /**
     * 新密码
     */
    @ApiModelProperty("新密码")
    @NotBlank(message = "新密码为空")
    private String password;

}
